package reduce.fz.com.reduce.display;

import android.support.v4.app.FragmentActivity;

import reduce.fz.com.reduce.fragment.BoardFragment;
import reduce.fz.com.reduce.fragment.JianzhengNotifyFragment;
import reduce.fz.com.reduce.fragment.WitnessFragment;

/**
 * Created by qingshengzheng on 15/7/10.
 */
public class MainDisplay implements Display {
    private FragmentActivity mActivity;
    private int mFragmeId;


    public MainDisplay(FragmentActivity mActivity, int fragmeId) {
        this.mActivity = mActivity;
        this.mFragmeId = fragmeId;
    }

    @Override
    public void showFindFragment() {
        //  mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, new FindFragment()).commit();
    }

    @Override
    public void showBoardFragment() {
        mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, new BoardFragment());

    }

    @Override
    public void showSelfCenterFragment() {
       // mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, new SelfCenterFragment()).commit();

    }

    @Override
    public void showMyTeamsFragment() {
        // mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, MyTeamFragment.create(null)).commit();
    }

    @Override
    public void showFIndTeamFragment() {
        // mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, FindTeamFragment.create(0L, "")).commit();
    }

    @Override
    public void showMessageFragment() {
       // mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, MessageFragment.create()).commit();
    }

    @Override
    public void showPinglunFragment() {

        //mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, ping.create()).commit();
    }

    @Override
    public void showJianZhengFragment(Long uid) {
        mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, JianzhengNotifyFragment.create(uid)).commit();
    }

    @Override
    public void showFensiFragment(Long uid) {
        //  mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, FensiNotifyFragment.create(uid)).commit();
    }

    @Override
    public void showWitnessDynamic(Long teamid) {

        //mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, WitnessDynamicListFragment.create(null)).commit();

    }

    @Override
    public void showWitnessFragment(Long teamid) {
        mActivity.getSupportFragmentManager().beginTransaction().replace(mFragmeId, WitnessFragment.create(0L)).commit();

    }


}
